<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<script type="text/javascript">
    function page(n,s){
        $("#pageNo").val(n);
        $("#pageSize").val(s);
        $("#searchForm").submit();
        return false;
    }

</script>
<div class="content-wrap">
    <div class="wrapper" style="bottom: 50px;">
        <ul class="nav nav-tabs">
            <li>
                <a href="#">库存列表</a>
            </li>
        </ul>
        <section class="panel panel-default">
            <div class="panel-body">
                <div class="col-lg-12">
                    <table id="stockTable" class="table table-bordered mg-t datatable">
                        <thead>
                        <tr>

                            <th>药品名称</th>
                            <th>包装数量</th>
                            <th>包装规格</th>
                            <th>包装单位</th>
                            <th>进货价</th>
                            <th>有效期</th>
                            <th>大包装库存量</th>
                            <th>小包装库存量</th>
                            <th>小包装实盘数</th>
                            <th>盘点时间</th>

                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${page.list}" var="check">
                        <tr>

                            <td>${check.drugName}</td>
                            <td>${check.packageNum}</td>
                            <td>${check.packageSpec}</td>
                            <td>${fns:getDictLabel(check.packageUnits, 'SPEC_UNIT', '')}</td>
                            <td>${check.purchasePrice}</td>
                            <td><fmt:formatDate value="${check.expireDate}"
                                                pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate></td>
                            <td>${check.maxQuantity}</td>
                            <td>${check.minQuantity}</td>
                            <td>${check.actualQuantity}</td>
                            <td><fmt:formatDate value="${check.createDate}"
                                                                pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate></td>

                        </tr>
                        </c:forEach>
                    </table>
                    <div class="pagination">${page}</div>

                </div>
            </div>
        </section>
    </div>
</div>
